package com.yuyou.tas.admin.service.impl;

import java.util.List;

import com.yuyou.tas.admin.mapper.AuthUserSubjectMapper;
import com.yuyou.tas.admin.service.IAuthUserSubjectService;
import com.yuyou.tas.service.api.admin.dto.AuthUserSubjectDTO;
import com.yuyou.tas.service.api.admin.entity.AuthUserSubject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by yujin.liu on 2018/5/14.
 */
@Service
public class AuthUserSubjectServiceImpl implements IAuthUserSubjectService{

    @Autowired
    private AuthUserSubjectMapper authUserSubjectMapper;

    @Override
    public int insertAuthUserSubject(AuthUserSubject authUserSubject) {
        return authUserSubjectMapper.insert(authUserSubject);
    }

	@Override
	public List<AuthUserSubjectDTO> findSubjectByAuthUserId(Long authUserId) {
		return authUserSubjectMapper.findSubjectByAuthUserId(authUserId);
	}


}
